package me.ylduan.framework;

import me.ylduan.framework.helper.*;
import me.ylduan.framework.util.ClassUtil;

/**
 * 集中加载相应的 Helper 类
 * ConfigHelper->ClassHelper->BeanHelper->IocHelper->ControllerHelper
 * config.props    class       singleton   inject      @Action（Mapping）
 * 初始化AopHelper，完成对BEAN_MAP的补充
 * @author Zero
 * @created 2017/5/12 14:37
 */
public final class HelperLoader {
    public static void init() {
        Class<?>[] classList = {
                ClassHelper.class,
                BeanHelper.class,
                AopHelper.class,
                IocHelper.class,
                ControllerHelper.class
        };
        for (Class<?> cls : classList) {
            ClassUtil.loadClass(cls.getName(), true);
        }
    }
}